<!DOCTYPE html>
<html>
<head>
    <title>For Statement Example 3</title>
    <script type="text/javascript">
        var count = 10;
        for (var i=0; i < count; i++){
            alert(i);
        }
        alert(i);    //10

    </script>

</head>
<body>
  
</body>
</html>